<?php
$bar="検索する情報によって採点者のリスト";
        echo '<table border=1 align=center>';
        echo '<tr><td colspan=5 align=center class=bar>'.$bar.'</td></tr>';

        echo '
              <th>メールアドレス</th>
              <th>名前</th>
              <th>住んでいるアドレス</th>
              <th>電話番号</th>
              <th>操作</th>';
        foreach($query as $row){
            echo "<tr>
                        <td >$row->email</td>
                        <td >$row->name</td>
                        <td >$row->address</td>
                        <td >$row->phone</td>";

                $titleEditExa = '<img src ="'.base_url().'public/frontend/images/edit.gif" width=20 height=15 />';
                $titleDeleteExa = '<img src ="'.base_url().'public/frontend/images/delete.png" width=20 height=15 />';
                $edit_ex = anchor("manager/update_examiner/$row->id_ex",$titleEditExa);
                $delete_ex = anchor("manager/delete_examiner/$row->id_ex",$titleDeleteExa);
                echo "<td align=\"center\">$edit_ex $delete_ex</td></tr>";
            }
            $titleInsertManager = '<img src ="'.base_url().'public/frontend/images/add.jpeg" width=40 height=30 title="採点者の作成"/>';
            $insert_manager = anchor("manager/add_examiner",$titleInsertManager);
            echo '<tr><td colspan=5 align=center>'.$insert_manager.'</td></tr>';
        echo '</table>';
?>
